package com.flyduck.vueshop.product.mapper;

import com.flyduck.vueshop.common.mybatis.mapper.BaseMapperX;
import com.flyduck.vueshop.product.entity.AppSkuStock;
import org.apache.ibatis.annotations.Param;

/**
 * @Entity com.flyduck.entity.AppSkuStock
 */
public interface AppSkuStockMapper extends BaseMapperX<AppSkuStock> {

    int reduceStock(@Param("skuId") Long skuId, @Param("quantity") Integer quantity);

    int releaseStock(@Param("skuId") Long skuId, @Param("quantity") Integer quantity);
}




